package homework;
import java.util.Scanner;
public class Demo4 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入您消费金额："+"元");
        float a = scanner.nextFloat();
        System.out.println("请输入您抽取的折扣：（0.1折到9.9折之间）");
        float b = scanner.nextFloat();
        float c = a*0.1F*b;
        System.out.println("您最终的优惠价格为："+c+"元");
    }
}
